<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="text/html;charset=utf-8">
<title>角色列表</title></head>
<link href="resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="resources/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="resources/css/index.css" rel="stylesheet">

<body>
	<s:include value="../header-common.jsp" />
<div class="container">
	<div class="row">
	</div>
	<div class="row">
		<s:form id="roleList" name="form" action="roleInfo" method="post">
		<table class="table table-striped table-bordered table-hover table-condensed table-responsive">
		<tr class="success">
			<td class="textCenter">角色ID</td>
			<td class="textCenter">角色名称</td>
			<td class="textCenter">角色描述</td>
			<td class="textCenter">创建时间</td>
			<td class="textCenter">详情/修改</td>
		</tr>
		<s:iterator value="roleList" var="list" begin="begin" end="end" status="status">
		<tr class="warning">
		<td><s:property value="#list.roleId" /></td>
		<td><s:property value="#list.roleName" /></td>
		<td><s:property value="#list.roleDescription" /></td>
		<td><s:date name="#list.createTime" format="yyyy-MM-dd hh:mm:ss"/></td>
		<td class="textCenter"><button type="sumbit" class="btn btn-info" data-toggle="tab" 
			onclick="roleInfo(${list.roleId});">详情/修改</button></td>
		</tr>
		</s:iterator>
		</table>
		<input id="problemId" name="problemId" style="display:none;" />
		</s:form>
	</div>
</div>
	<script src="resources/bootstrap/js/jquery.min.js"></script>
	<script src="resources/bootstrap/js/bootstrap.min.js"></script>
	<script src="resources/js/common.js"></script>
</body>
</html>